package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.response.store.StoreGradeResp;
import com.rightsidetech.system.entity.store.SysStoreGrade;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysStoreGradeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysStoreGrade record);

    int insertSelective(SysStoreGrade record);

    SysStoreGrade selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysStoreGrade record);

    int updateByPrimaryKey(SysStoreGrade record);

    List<StoreGradeResp> list();

    SysStoreGrade selectByLevel(@Param("level") Byte level);

    SysStoreGrade selectByLevelName(@Param("levelName") String levelName);

    SysStoreGrade findOne();
}